﻿<Window x:Class="BBAnalyzer.analyzer"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="BizTalk Benchmark Analyzer - BiztalkAdmin.com" Height="800" Width="1022.222" ResizeMode="NoResize">
    <Grid>
        <Label Content="Performance&#xD;&#xA;Analyzer" HorizontalAlignment="Left" Margin="25,10,0,0" VerticalAlignment="Top" FontSize="22" FontWeight="Bold" Height="122" Background="Black" Foreground="White"/>
        <ComboBox x:Name="RecServer" HorizontalAlignment="Left" Margin="273,34,0,0" VerticalAlignment="Top" Width="120" SelectionChanged="RecServer_SelectionChanged"/>
        <Label Content="Receiving" HorizontalAlignment="Left" Margin="201,4,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label Content="Server:" HorizontalAlignment="Left" Margin="201,30,0,0" VerticalAlignment="Top"/>
        <Label Content="Host:" HorizontalAlignment="Left" Margin="201,61,0,0" VerticalAlignment="Top"/>
        <ComboBox x:Name="RecHost" HorizontalAlignment="Left" Margin="273,65,0,0" VerticalAlignment="Top" Width="120"/>
        <ComboBox x:Name="procServer" HorizontalAlignment="Left" Margin="483,34,0,0" VerticalAlignment="Top" Width="120" SelectionChanged="procServer_SelectionChanged"/>
        <Label Content="Processing" HorizontalAlignment="Left" Margin="411,4,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label Content="Server:" HorizontalAlignment="Left" Margin="411,30,0,0" VerticalAlignment="Top"/>
        <Label Content="Host:" HorizontalAlignment="Left" Margin="411,61,0,0" VerticalAlignment="Top"/>
        <ComboBox x:Name="procHost" HorizontalAlignment="Left" Margin="483,65,0,0" VerticalAlignment="Top" Width="120"/>
        <ComboBox x:Name="SndServer" HorizontalAlignment="Left" Margin="687,34,0,0" VerticalAlignment="Top" Width="120" SelectionChanged="SndServer_SelectionChanged"/>
        <Label Content="Sending" HorizontalAlignment="Left" Margin="615,4,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label Content="Server:" HorizontalAlignment="Left" Margin="615,30,0,0" VerticalAlignment="Top"/>
        <Label Content="Host:" HorizontalAlignment="Left" Margin="615,61,0,0" VerticalAlignment="Top"/>
        <ComboBox x:Name="SndHost" HorizontalAlignment="Left" Margin="687,65,0,0" VerticalAlignment="Top" Width="120"/>
        <Label x:Name="DatabaseServer" Content="Database Server" HorizontalAlignment="Left" Margin="25,53,0,0" VerticalAlignment="Top" Visibility="Hidden"/>
        <Label x:Name="mgmtDb" Content="Mgmt Database" HorizontalAlignment="Left" Margin="25,68,0,0" VerticalAlignment="Top" Visibility="Hidden"/>
        <Button x:Name="startAnalyze" Content="Start analyzer" HorizontalAlignment="Left" Margin="614,105,0,0" VerticalAlignment="Top" Width="87" Click="startAnalyze_Click"/>
        <TextBox x:Name="testDuration" HorizontalAlignment="Left" Height="23" Margin="273,106,0,0" TextWrapping="Wrap" Text="10" VerticalAlignment="Top" Width="120"/>
        <Label Content="Duration:" HorizontalAlignment="Left" Margin="201,102,0,0" VerticalAlignment="Top"/>
        <Button x:Name="stopAnalyze" Content="stop" HorizontalAlignment="Left" Margin="720,105,0,0" VerticalAlignment="Top" Width="87" IsEnabled="False" Click="stopAnalyze_Click"/>
        <Label x:Name="durationLeft" Content="Time left" HorizontalAlignment="Left" Margin="459,106,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.766,-0.67" Foreground="#FFF50C0C"/>
        <Label Content="Memory consumption:" HorizontalAlignment="Left" Margin="25,210,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Memory consumption:" HorizontalAlignment="Left" Margin="234,210,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Memory consumption:" HorizontalAlignment="Left" Margin="436,210,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Receiving" HorizontalAlignment="Left" Margin="25,174,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label Content="Processing" HorizontalAlignment="Left" Margin="235,174,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label Content="Sending" HorizontalAlignment="Left" Margin="439,174,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label Content="Documents Processed:" HorizontalAlignment="Left" Margin="25,260,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Documents Processed:" HorizontalAlignment="Left" Margin="235,260,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Documents Processed:" HorizontalAlignment="Left" Margin="438,260,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Documents Received:" HorizontalAlignment="Left" Margin="25,286,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Documents Received:" HorizontalAlignment="Left" Margin="235,286,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Documents Received:" HorizontalAlignment="Left" Margin="438,286,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Button x:Name="restartUsedHosts" Content="Restart all hosts" HorizontalAlignment="Left" Margin="851,36,0,0" VerticalAlignment="Top" Width="126" Click="restartUsedHosts_Click"/>
        <Button x:Name="cleanMsgBox" Content="Clean Message box" HorizontalAlignment="Left" Margin="851,67,0,0" VerticalAlignment="Top" Width="126" Click="cleanMsgBox_Click"/>
        <Button x:Name="cleanMsgBox_Copy" Content="Clean tracking data" HorizontalAlignment="Left" Margin="851,98,0,0" VerticalAlignment="Top" Width="126" Click="cleanMsgBox_Copy_Click"/>
        <Label Content="Benchmark data" HorizontalAlignment="Left" Margin="23,516,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label Content="Throttling States" HorizontalAlignment="Left" Margin="25,377,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Throttling States" HorizontalAlignment="Left" Margin="235,382,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Throttling States" HorizontalAlignment="Left" Margin="438,382,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Delivery" HorizontalAlignment="Left" Margin="25,483,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Publishing" HorizontalAlignment="Left" Margin="93,483,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="RecDelThrotState" Content="0" HorizontalAlignment="Left" Margin="34,408,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontSize="48" FontFamily="Microsoft New Tai Lue" FontWeight="Bold"/>
        <Label x:Name="RecPubThrotState" Content="0" HorizontalAlignment="Left" Margin="106,408,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontSize="48" FontFamily="Microsoft New Tai Lue" FontWeight="Bold"/>
        <Label Content="Delivery" HorizontalAlignment="Left" Margin="234,483,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Publishing" HorizontalAlignment="Left" Margin="302,483,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="ProcDelThrotState" Content="0" HorizontalAlignment="Left" Margin="243,408,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontSize="48" FontFamily="Microsoft New Tai Lue" FontWeight="Bold"/>
        <Label x:Name="ProcPubThrotState" Content="0" HorizontalAlignment="Left" Margin="315,408,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontSize="48" FontFamily="Microsoft New Tai Lue" FontWeight="Bold"/>
        <Label Content="Delivery" HorizontalAlignment="Left" Margin="436,483,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Publishing" HorizontalAlignment="Left" Margin="504,483,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="SndDelThrotState" Content="0" HorizontalAlignment="Left" Margin="445,408,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontSize="48" FontFamily="Microsoft New Tai Lue" FontWeight="Bold"/>
        <Label x:Name="SndPubThrotState" Content="0" HorizontalAlignment="Left" Margin="517,408,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontSize="48" FontFamily="Microsoft New Tai Lue" FontWeight="Bold"/>
        <Label x:Name="RecDelThrotStateDur" Content="-" HorizontalAlignment="Left" Margin="25,465,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontFamily="Microsoft YaHei UI" FontSize="9" HorizontalContentAlignment="Center" Width="57" Height="21"/>
        <Label x:Name="RecPubThrotStateDur" Content="-" HorizontalAlignment="Left" Margin="93,465,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontFamily="Microsoft YaHei UI" FontSize="9" HorizontalContentAlignment="Center" Width="57" Height="21"/>
        <Label x:Name="ProcDelThrotStateDur" Content="-" HorizontalAlignment="Left" Margin="234,465,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontFamily="Microsoft YaHei UI" FontSize="9" HorizontalContentAlignment="Center" Width="57" Height="21"/>
        <Label x:Name="ProcPubThrotStateDur" Content="-" HorizontalAlignment="Left" Margin="302,465,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontFamily="Microsoft YaHei UI" FontSize="9" HorizontalContentAlignment="Center" Width="57" Height="21"/>
        <Label x:Name="SndDelThrotStateDur" Content="-" HorizontalAlignment="Left" Margin="436,465,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontFamily="Microsoft YaHei UI" FontSize="9" HorizontalContentAlignment="Center" Width="57" Height="21"/>
        <Label x:Name="SndPubThrotStateDur" Content="-" HorizontalAlignment="Left" Margin="504,465,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611" FontFamily="Microsoft YaHei UI" FontSize="9" HorizontalContentAlignment="Center" Width="57" Height="21"/>
        <Label Content="Message rate:" HorizontalAlignment="Left" Margin="23,552,0,0" VerticalAlignment="Top"/>
        <Label x:Name="messageRate" Content="0" HorizontalAlignment="Left" Margin="138,552,0,0" VerticalAlignment="Top"/>
        <Label Content="Received a second" HorizontalAlignment="Left" Margin="25,578,0,0" VerticalAlignment="Top"/>
        <Label x:Name="messageRecSec" Content="0" HorizontalAlignment="Left" Margin="138,578,0,0" VerticalAlignment="Top"/>
        <Label Content="Processed a second" HorizontalAlignment="Left" Margin="23,604,0,0" VerticalAlignment="Top"/>
        <Label x:Name="messageProSec" Content="0" HorizontalAlignment="Left" Margin="138,604,0,0" VerticalAlignment="Top"/>
        <Label Content="BizTalk" HorizontalAlignment="Left" Margin="821,174,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label Content="Tracking Data:" HorizontalAlignment="Left" Margin="821,210,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Spool Size" HorizontalAlignment="Left" Margin="821,236,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label Content="Receiving" HorizontalAlignment="Left" Margin="25,174,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label Content="SQL Server" HorizontalAlignment="Left" Margin="633,174,0,0" VerticalAlignment="Top" FontSize="16"/>
        <Label x:Name="RAMRecServer" Content="" HorizontalAlignment="Left" Margin="160,210,0,0" VerticalAlignment="Top"/>
        <Label x:Name="DocDelRecServer" Content="" HorizontalAlignment="Left" Margin="160,286,0,0" VerticalAlignment="Top"/>
        <Label x:Name="DocProRecServer" Content="" HorizontalAlignment="Left" Margin="160,260,0,0" VerticalAlignment="Top"/>
        <Label x:Name="DocProProcServer" Content="" HorizontalAlignment="Left" Margin="370,260,0,0" VerticalAlignment="Top"/>
        <Label x:Name="RAMProcServer" Content="" HorizontalAlignment="Left" Margin="370,210,0,0" VerticalAlignment="Top"/>
        <Label x:Name="DocDelProcServer" Content="" HorizontalAlignment="Left" Margin="370,286,0,0" VerticalAlignment="Top"/>
        <Label x:Name="RAMSndServer" Content="" HorizontalAlignment="Left" Margin="568,210,0,0" VerticalAlignment="Top"/>
        <Label x:Name="DocProSndServer" Content="" HorizontalAlignment="Left" Margin="568,260,0,0" VerticalAlignment="Top"/>
        <Label x:Name="DocDelSndServer" Content="" HorizontalAlignment="Left" Margin="568,286,0,0" VerticalAlignment="Top"/>
        <Label x:Name="GlobDtadData" Content="" HorizontalAlignment="Left" Margin="906,210,0,0" VerticalAlignment="Top"/>
        <Label x:Name="GlobSpoolSize" Content="" HorizontalAlignment="Left" Margin="906,236,0,0" VerticalAlignment="Top"/>
        <Label Content="Process Memory" HorizontalAlignment="Left" Margin="25,635,0,0" VerticalAlignment="Top" FontSize="14"/>
        <Label Content="Receive" HorizontalAlignment="Left" Margin="68,659,0,0" VerticalAlignment="Top"/>
        <Label x:Name="processMemorRec" Content="0" HorizontalAlignment="Left" Margin="138,659,0,0" VerticalAlignment="Top"/>
        <Label Content="Processing" HorizontalAlignment="Left" Margin="67,685,0,0" VerticalAlignment="Top"/>
        <Label x:Name="processMemorProc" Content="0" HorizontalAlignment="Left" Margin="137,685,0,0" VerticalAlignment="Top"/>
        <Label Content="Sending" HorizontalAlignment="Left" Margin="67,711,0,0" VerticalAlignment="Top"/>
        <Label x:Name="processMemorSnd" Content="0" HorizontalAlignment="Left" Margin="137,711,0,0" VerticalAlignment="Top"/>
        <Label Content="Thread Consumption" HorizontalAlignment="Left" Margin="450,635,0,0" VerticalAlignment="Top" FontSize="14"/>
        <Label Content="Receive" HorizontalAlignment="Left" Margin="266,659,0,0" VerticalAlignment="Top"/>
        <Label x:Name="DatabaseSessionsRec" Content="0" HorizontalAlignment="Left" Margin="336,659,0,0" VerticalAlignment="Top"/>
        <Label Content="Processing" HorizontalAlignment="Left" Margin="265,685,0,0" VerticalAlignment="Top"/>
        <Label x:Name="DatabaseSessionsProc" Content="0" HorizontalAlignment="Left" Margin="335,685,0,0" VerticalAlignment="Top"/>
        <Label Content="Sending" HorizontalAlignment="Left" Margin="265,711,0,0" VerticalAlignment="Top"/>
        <Label x:Name="DatabaseSessionsSnd" Content="0" HorizontalAlignment="Left" Margin="335,711,0,0" VerticalAlignment="Top"/>
        <Label Content="Database Session" HorizontalAlignment="Left" Margin="223,635,0,0" VerticalAlignment="Top" FontSize="14"/>
        <Label Content="Receive" HorizontalAlignment="Left" Margin="493,659,0,0" VerticalAlignment="Top"/>
        <Label x:Name="ThreadConsumptionRec" Content="0" HorizontalAlignment="Left" Margin="563,659,0,0" VerticalAlignment="Top"/>
        <Label Content="Processing" HorizontalAlignment="Left" Margin="492,685,0,0" VerticalAlignment="Top"/>
        <Label x:Name="ThreadConsumptionProc" Content="0" HorizontalAlignment="Left" Margin="562,685,0,0" VerticalAlignment="Top"/>
        <Label Content="Sending" HorizontalAlignment="Left" Margin="492,711,0,0" VerticalAlignment="Top"/>
        <Label x:Name="ThreadConsumptionSnd" Content="0" HorizontalAlignment="Left" Margin="562,711,0,0" VerticalAlignment="Top"/>
        <Label Content="Lock wait time (avg):" HorizontalAlignment="Left" Margin="637,210,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="SQLLockWaitTime" Content="" HorizontalAlignment="Left" Margin="767,210,0,0" VerticalAlignment="Top"/>
        <Label Content="Lock timeout:" HorizontalAlignment="Left" Margin="637,236,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="SQLLockTmeout" Content="" HorizontalAlignment="Left" Margin="767,236,0,0" VerticalAlignment="Top"/>
        <Label Content="Active transactions:" HorizontalAlignment="Left" Margin="637,262,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="SQLActiveTrans" Content="" HorizontalAlignment="Left" Margin="767,262,0,0" VerticalAlignment="Top"/>
        <Label Content="Deadlock count:" HorizontalAlignment="Left" Margin="637,288,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="SQLdeadlockCount" Content="" HorizontalAlignment="Left" Margin="767,288,0,0" VerticalAlignment="Top"/>
        <Label Content="CPU Usage:" HorizontalAlignment="Left" Margin="25,234,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="RecCPUCounter" Content="" HorizontalAlignment="Left" Margin="160,234,0,0" VerticalAlignment="Top"/>
        <Label Content="CPU Usage:" HorizontalAlignment="Left" Margin="235,236,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="ProcCPUCounter" Content="" HorizontalAlignment="Left" Margin="380,234,0,0" VerticalAlignment="Top"/>
        <Label Content="CPU Usage:" HorizontalAlignment="Left" Margin="436,234,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.556,0.611"/>
        <Label x:Name="SndCPUCounter" Content="" HorizontalAlignment="Left" Margin="573,234,0,0" VerticalAlignment="Top"/>
    </Grid>
    
</Window>
